#define _CRT_SECURE_NO_WARNINGS 1
#include<stdlib.h>
#include<stdio.h>

int compare(const void* a, const void* b) {
	return *(int*)a - *(int*)b;
}
int main() {
	int n;
	int pos[1002];
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &pos[i]);
	}

	qsort(pos, n, 4, compare);

	if ((n % 2) == 0)printf("%d", pos[(n + 1) / 2]);
	else printf("%d", pos[n / 2]);
	return 0;
}